package com.wiken.commentservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wiken.commentservice.DTO.CommentStoreDTO;
import com.wiken.commentservice.DTO.CommentUserDTO;
import com.wiken.commentservice.VO.StoreCommodityVO;
import com.wiken.commentservice.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wiken.servicecommon.common.PageUtill;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wiken
 * @since 2022-12-28
 */
public interface ICommentService extends IService<Comment> {
    boolean addComment(Comment comment, String token);

    boolean updateComment(Comment comment, String token);
    boolean delComment(Comment comment, String token);

    Page<CommentStoreDTO> getMyComment(Comment comment, PageUtill pageUtill, String token);

    Page<CommentUserDTO> getCommentByStoreId(String storeId, String userId, PageUtill pageUtill);

    Page<StoreCommodityVO> getCommentOfNeedComment(String token, PageUtill pageUtill);

    Page<StoreCommodityVO> getCommentOfCommented(String token, PageUtill pageUtill);


}
